﻿<UserControl x:Class="My.CodePlex.TFSExplorer.UsersControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:res="clr-namespace:My.CodePlex.TFSExplorer.Resources">
    <Grid>
        <TreeView x:Name="UsersView">
            <TreeView.ItemTemplate>
                <HierarchicalDataTemplate ItemsSource="{Binding Path=Items}">
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Path=Name}" ToolTip="{Binding Path=Description}"/>
                    </StackPanel>
                </HierarchicalDataTemplate>
            </TreeView.ItemTemplate>
            <TreeView.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="{x:Static res:Resource.UsersViewSetDisplayUser}"
                              ToolTip="{x:Static res:Resource.UsersViewSetDisplayUserToolTip}" 
                              Click="UsersViewSetDisplayUserClick" />
                </ContextMenu>
            </TreeView.ContextMenu>
        </TreeView>
    </Grid>
</UserControl>
